<title> Mes reservations </title>

<section>

	<?php
	
			while ($reservation = mysqli_fetch_array($resultat)) {
			
			$debut = date("d-m-Y", strtotime($reservation['debut_location']));
			$fin = date("d-m-Y", strtotime($reservation['fin_location']));
				
				echo "<div class='reservation'>
						debut location = ".$debut."</br>
						fin location = ".$fin."</br>
						type  = ".$reservation['type']."</br>
						pays = ".$reservation['pays']."</br>
						vile = ".$reservation['ville']."</br>
						prix = ".$reservation['tarif_total']."</br>";
						
				$date= date('d-m-Y');
				
				if($debut > $date){
					echo   "<form name='annulation' method='POST' action='reservation.php'>
								<input type='hidden' name='id_location' value='".$reservation['id']."' />
								<input type='submit' name='annuler' class='annuler' value='Annuler'/>
							</form>
						</div>";
				}else{
					echo "</div>";
				}
			}

	?>
	

	
</section>